package org.dzq.designmode.strategy;

/**
 * @ClassName: IntermediateMemberStrategy
 * @Package: org.dzq.designmode.strategy
 * @author: 越
 * @date: 2023/6/14 20:16
 * @Description:
 */
public class IntermediateMemberStrategy implements MemberStrategy{

    private static final double INTERMEDIATE_MENBER_DISCOUNT = 0.9;

    @Override
    public double calculateCost(double price, int num) {
        return price * num * INTERMEDIATE_MENBER_DISCOUNT;
    }
}
